<!--
 * @Author: WLang
 * @LastEditors: WLang
 * @Description: 
 * @Date: 2023-07-02 14:05:27
 * @LastEditTime: 2023-07-13 20:38:21
 * @FilePath: \myblog\src\components\base\BaseAside.vue
-->
<template>
  <el-aside class="blog-aside">
    <el-card class="blog-box--card">
  <div class="blog-avatar">
      <img :src="userInfo.avatar" alt="!" class="blog-avatar--pic">
    </div>
    <div class="blog-info">
      <h3 class="blog-info--nickname">{{userInfo.nikname}}</h3>
      <div class="blog-info--state">
        <div class="blog-state--item">
          <a href="#">
            <span class="blog-state--count">{{userInfo.articleCount}}</span>
            <span class="blog-state--name">文章</span>
          </a>
          <a href="#">
            <span class="blog-state--count">{{userInfo.columnCount}}</span>
            <span class="blog-state--name">分类</span>
          </a>
        </div>
      </div>
      <p class="blog-info--content">个性签名:{{userInfo.signature}}</p>
    </div>
</el-card>
    
  </el-aside>
</template>

<script>
import { mapGetters } from 'vuex';
export default {
  components:{},
  data(){
    return {
    }
  },
created(){},
mounted(){},
watch:{},
computed:{
  ...mapGetters(['userInfo'])
},
methods:{},
}
</script>
<style lang="scss" scoped>
.blog-aside {
  margin-top: 20px;
}
.blog-box--card {
  text-align: center; 
  width: 80%;
  max-width: 240px;
  .blog-avatar {
    width: 100px;
    height: 100px;
    overflow: hidden;
    margin: 0 auto;
    margin-top: 20px;
    .blog-avatar--pic {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }
  .blog-info{
    margin-top: 40px;
    text-align: center;
    .blog-info--nickname {
    font-size: 24px;
  }
  .blog-info--state{
    margin-top: 20px;
    .blog-state--item a{
      color: #333;
      margin-left: 10px;
    }
  }
  }
  .blog-info--content {
    margin-top: 20px;
  }

}
</style>